import http from './request'

// 获取乘车人列表的数据
export const getPsgListApi = () => http.get('/api/passengers')

// 新增乘车人
export const postPsgApi = (data) => http.post('/api/passengers', data)

// 修改乘车人
export const editPsgApi = (data) => http.put('/api/passengers', data)

// OCR 识别
export const ocrApi = (data) => http.post('/api/orc/upload/image', data)

// 删除乘车人
export const deletePsgApi = (id) => http.delete('/api/passengers/' + id)
